package com.example.service;

import com.example.dao.Sunfax_userMapper;
import com.example.entity.Sunfax_user;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

   @Autowired
   Sunfax_userMapper userMapper;


   public PageInfo<Sunfax_user> userPage(){
      PageHelper.startPage(1, 20);
      return  new PageInfo<Sunfax_user>(userMapper.selectAll());
   }


}
